package com.by.controller;

import cn.hutool.core.bean.BeanUtil;
import com.by.bean.CInquiry;
import com.by.bean.CInquiryDetail;
import com.by.common.bean.PageBean;
import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.query.CInquiryQuery;
import com.by.service.CInquiryDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Api(tags = "客户端询价详情")
@RestController
@RequestMapping("/v1")
public class CInquiryDetailController extends BaseController {
    @Autowired
    CInquiryDetailService cInquiryDetailService;

    @ApiOperation("询价列表")
    @GetMapping("/inquiryDetail/query")
    public ResultBean query(@RequestParam(name = "eid") Integer eid) {
        List<Map> list = cInquiryDetailService.queryById(eid);
        return success("询价列表", list);
    }

}
